use app::bootstrap;

mod app;

#[tokio::main]
#[tracing::instrument]
async fn main() -> anyhow::Result<()> {
    let conn = bootstrap::init().await;

    match conn {
        Ok(_) => tracing::info!("Database is connected successfully."),
        Err(err) => tracing::error!("Database can not connected {err:?}"),
    }

    println!("Hello, world!");
    Ok(())
}
